<?php


class Test_v_to_c_2 extends CI_Controller {
    
    function index() {
        $data = array();
        $data['message'] = "variable 'message' from the view,";
        $data['another_message'] = "variable 'another_message_ from the view";
        
        
        $user_id = '2';
        // get an object by ID
        $user = $this->doctrine->em->find('Entities\User', $user_id);
        //echo $user->getFirstName().' '.$user->getLastName().' is a real chill guy.<br />';
        $data['firstname'] = $user->getFirstName();
        
        $this->load->view('testing/test_v_to_c_view_2',$data);
        
        
        
        
        
    }
}


?>
